
                               
        <?php use_helper('Form')?>                       
<!--Form serch -->
                <div align="center" class="form_serch">
                    <div class="form_serch_size">
                    	<div class="form_serch_otstup">
                                <form action="<?php echo url_for('@search')?>">
                                    <div class="form_element png">
                                        <label for="id_cat"><?php echo __('Код каталога')?></label><input class="textcenter"  name="key" id="id_cat" type="text" />
                                    </div>
                                    <div class="form_element png">
                                        <label><?php echo __('Возраст')?></label>
                                       <?php echo select_tag('age_from',options_for_select(sfContext::getInstance()->getUser()->getAge(),sfContext::getInstance()->getRequest()->getParameter('age_from')))?>
                                        
                                        <?php echo select_tag('age_to',options_for_select(sfContext::getInstance()->getUser()->getAge(),sfContext::getInstance()->getRequest()->getParameter('age_to')))?>
                                        <?php echo __('лет')?> 
                                    </div>  
                                    <div class="form_element png">
                                        <label><?php echo __('Рост')?></label>
                                        <?php echo select_tag('rost_from',options_for_select(sfContext::getInstance()->getUser()->getRost(),sfContext::getInstance()->getRequest()->getParameter('rost_from')))?>
                                         – 
                                       <?php echo select_tag('rost_to',options_for_select(sfContext::getInstance()->getUser()->getRost(),sfContext::getInstance()->getRequest()->getParameter('rost_to')))?>
                                        <?php echo __('см.')?> 
                                  </div>   
                                    <div class="form_element png">
                                    <label class="new_message" for="new"><?php echo __('Только новые объявления')?> </label>
                                    <?php if(sfContext::getInstance()->getRequest()->getParameter('in_online')==1):?>
                                     <?php echo checkbox_tag('is_new', 1, true,'class="new_message_input" id="on-line"') ?>
                                    <?php else: ?>
                                     <?php echo checkbox_tag('is_new', 1, false,'class="new_message_input" id="on-line"') ?>
                                     <?php endif ?>
                                  </div>
                                    <div class="form_element png">
                                        <label class="only_online" for="on-line"><?php echo __('Только On-Line')?></label>
                                       <?php if(sfContext::getInstance()->getRequest()->getParameter('in_online')==1):?>
                                       <?php echo checkbox_tag('in_online', 1, true,'class="only_online_input" id="on-line"') ?>
                                       <?php else: ?>
                                        <?php echo checkbox_tag('in_online', 1, false,'class="only_online_input" id="on-line"') ?>
                                        <?php endif ?>
                                    </div>
                                    <div align="center">
                                         <input  class="png input_but" type="submit" value="<?php echo __('Искать')?>" />
                                    </div>
                                </form>
                    	</div>
                    </div>
                </div>
                <!--*Form serch -->                               